<?php defined('_JEXEC') or die('Restricted access'); ?>

<form action="index.php" method="post" name="adminForm" id="adminForm">
<div class="col100">
	<fieldset class="adminform">
		<legend><?php echo JText::_( 'Details' ); ?></legend>
		<table class="admintable">
		<tr>
			<td width="100" align="right" class="key">
				<label for="date">
					<?php echo JText::_( 'Date' ); ?>:
				</label>
			</td>
			<td>
				<select name='qdate_day' id='qdate_day'>
			    <option value="<?php echo substr($this->item->qdate, 0, 2)?>"><?php echo substr($this->item->qdate, 0, 2) ?></option><option value="01">01</option><option value="02">02</option><option value="03">03</option><option value="04">04</option><option value="05">05</option><option value="06">06</option><option value="07">07</option><option value="08">08</option><option value="09">09</option><option value="10">10</option><option value="11">11</option><option value="12">12</option><option value="13">13</option><option value="14">14</option><option value="15">15</option><option value="16">16</option><option value="17">17</option><option value="18">18</option><option value="19">19</option><option value="20">20</option><option value="21">21</option><option value="22">22</option><option value="23">23</option><option value="24">24</option><option value="25">25</option><option value="26">26</option><option value="27">27</option><option value="28">28</option><option value="29">29</option><option value="30">30</option><option value="31">31</option>
				</select>
				<select name='qdate_month' id='qdate_month'>
				<option value="<?php echo substr($this->item->qdate, 3,2) ?>"><?php echo substr($this->item->qdate, 3,2) ?></option><option value="01">01</option><option value="02">02</option><option value="03">03</option><option value="04">04</option><option value="05">05</option><option value="06">06</option><option value="07">07</option><option value="08">08</option><option value="09">09</option><option value="10">10</option><option value="11">11</option><option value="12">12</option>
				</select> (dd/mm)
			</td>
		</tr>
		<tr>
			<td width="100" align="right" class="key">
				<label for="qlang">
					<?php echo JText::_( 'Language' ); ?>:
				</label>
			
			</td>
			<td>
				<?php $languages = JLanguage::getKnownLanguages(); ?>

				<select name="qlang" id="qlang">
				<?php foreach( $languages as $language): ?>
				<?php $l = strtoupper(substr($language['tag'], 0 ,2)) ?>
				<option value="<?php echo  $l?>" <?php if($this->item->qlang == $l) echo "selected " ?>><?php echo $language['name'] ?></option>
				<?php endforeach; ?>
				</select>
			</td>
		<tr>
			<td width="100" align="right" class="key">
				<label for="qtext">
					<?php echo JText::_( 'Quote' ); ?>:
				</label>
			</td>
			<td>
				<textarea class="text_area" type="text" name="qtext" id="qtext" size="32"><?php echo $this->item->qtext;?></textarea>
			</td>
		</tr>
		<tr>
			<td width="100" align="right" class="key">
				<label for="qsource">
					<?php echo JText::_( 'Source' ); ?>:
				</label>
			</td>
			<td>
				<input class="text_area" type="text" name="qsource" id="qsource" size="32" maxlength="250" value="<?php echo $this->item->qsource;?>" />
			</td>
		</tr>

		
		
		
	</table>
	</fieldset>
</div>
<div class="clr"></div>

<input type="hidden" name="option" value="com_aquote" />
<input type="hidden" name="id" value="<?php echo $this->item->id; ?>" />
<input type="hidden" name="task" value="" />
<input type="hidden" name="controller" value="" />
</form>
